package com.tianya.forum.dao;

import com.tianya.forum.model.Board;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface BoardMapper {
    int insert(Board row);

    int insertSelective(Board row);

    Board selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Board row);

    int updateByPrimaryKey(Board row);

    /**
     * 查询前num个正常状态的板块
     * @param num
     * @return
     */
    List<Board> selectByNum(Integer num);
}